package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 预付款单表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "prepayment_order")
public class PrepaymentOrder implements Serializable {
    /**
     * 预付款单编号
     */
    @TableId(value = "prepayment_order_no", type = IdType.INPUT)
    private Integer prepaymentOrderNo;

    /**
     * 预付款单编码
     */
    @TableField(value = "prepayment_order_code")
    private String prepaymentOrderCode;

    /**
     * 供应商id
     */
    @TableField(value = "supplier_id")
    private Integer supplierId;

    /**
     * 供应商收款账户
     */
    @TableField(value = "bank_id")
    private Integer bankId;

    /**
     * 预付款单单据日期
     */
    @TableField(value = "prepayment_order_date")
    private Date prepaymentOrderDate;

    /**
     * 负责人表id
     */
    @TableField(value = "owner_user_id")
    private Integer ownerUserId;

    /**
     * 交货日期
     */
    @TableField(value = "delivery_date")
    private Date deliveryDate;

    /**
     * 生产负责人
     */
    @TableField(value = "production_manager")
    private Integer productionManager;

    /**
     * 备注
     */
    @TableField(value = "notes")
    private String notes;

    /**
     * 采购订单
     */
    @TableField(value = "purchase_order_id")
    private Integer purchaseOrderId;

    /**
     * 附件id
     */
    @TableField(value = "file_id")
    private Integer fileId;

    /**
     * 退款状态
     */
    @TableField(value = "refund_status")
    private Integer refundStatus;

    /**
     * 审核状态(0审核中，1通过，2拒绝)
     */
    @TableField(value = "review_status")
    private Integer reviewStatus;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}